<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#$title#}</title>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<link href="{#$QISHI.site_template#}css/common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/user.css" rel="stylesheet" type="text/css" />
<script>
function isBlank(str) {
	if(typeof(str)=="undefined"){
		return true;
	}
	return /^\s*$/.test(str);
}
function isdisplay(i)     
{      
if(document.getElementById(i).style.display=="")     
{     
 document.getElementById(i).style.display="none";     
}     
else     
{     
document.getElementById(i).style.display="";     
  
}     
 }
</script>
<script>
function chk_form()
{
	var trade = document.getElementById('trade');
	
if (isBlank(trade.value))
	{
	alert("請選擇所屬行業！")
	//trade.focus();
	return (false);
	}
	var stuff_number = document.getElementById('stuff_number');
if (isBlank(stuff_number.value))
	{
	alert("請填寫現有僱員人數！")
	stuff_number.focus();
	return (false);
	}
/*	var school_number = document.getElementById('school_number');
if (isBlank(school_number.value))
	{
	alert("請填寫學校註冊證明書註冊編號！")
	school_number.focus();
	return (false);
	}
*/	
var company_name_cn = document.getElementById('company_name_cn');
var company_name_en = document.getElementById('company_name_en');
if (isBlank(company_name_cn.value) && isBlank(company_name_en.value))
{
	alert("請輸入公司名稱")
	company_name_cn.focus();
	return (false);
}	
	var contact_en = document.getElementById('contact_en');
	var contact_cn = document.getElementById('contact_cn');
if (isBlank(contact_en.value) && isBlank(contact_cn.value))
	{
	alert("請輸入聯系人！")
	contact_cn.focus();
	return (false);
	}
	var telephone = document.getElementById('telephone');
	var telephone_inline = document.getElementById('telephone_inline');
if (isBlank(telephone.value) && isBlank(telephone_inline.value))
	{
	alert("請輸入聯系電話！")
	telephone.focus();
	return (false);
	}
	var email = document.getElementById('email');
if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(email.value))==0)
{
	alert("聯系郵箱格式有誤!")
	email.focus();
	return (false);
}
	var address_1_en = document.getElementById('address_1_en');
	var address_2_en = document.getElementById('address_2_en');
	var address_3_en = document.getElementById('address_3_en');
	var address_1_cn = document.getElementById('address_1_cn');
	var address_2_cn = document.getElementById('address_2_cn');
	var address_3_cn = document.getElementById('address_3_cn');
if (isBlank(address_1_en.value) && isBlank(address_2_en.value) && isBlank(address_3_en.value) && isBlank(address_1_cn.value) && isBlank(address_2_cn.value) && isBlank(address_3_cn.value))
{
	alert("請輸入公司地址！")
	address_1_cn.focus();
	return (false);
}
return (true);
}
function setdisplay(i, option)     
{      
	document.getElementById(i).style.display=option;   
}
function check_trade(value)
{
	if(value && 45 == value)
	{
		setdisplay('trade_option', '');
	}
	else
	{
		setdisplay('trade_option', 'none');
	}
}
</script>
<body>
{#include file="header.htm"#}
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:8px;" >
  <tr>
    <td width="208" valign="top" class="link_bk">
	{#include file="member_company/company_left.htm"#}
	</td>
    <td valign="top"><form id="Form1" name="Form1" method="post" action="?act=company_profile_save" onsubmit="return chk_form();">
      <table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF" class="user_right_box">
        <tr>
          <td height="22" colspan="2" class="user_right_box_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><span class="right_top_tit" style="padding-left:15px;">企業資料管理&nbsp;&nbsp;&nbsp;<span style="font-size:12px; color:#333333; font-weight:100">(帶<font style="color:#FF3300; font-weight:bold">*</font>為必填項)</span></span></td>
                <td class="link_lan" align="right"><a href="?">管理首頁</a></td>
              </tr>
            </table></td>
        </tr>
         <tr>
          <td width="110" height="30" valign="top" align="right" bgcolor="#FFFFFF"  style=" border-bottom:1px #CCCCCC dashed">商業登記號碼 ：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed"><input value="{#$company_profile.reg_number_pre#}" name="reg_number_pre" type="text" id=""reg_number_pre"" maxlength="10" size="13" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>-<input name="reg_number_suf"  value="{#$company_profile.reg_number_suf#}"type="text" id="reg_number_suf" maxlength="10"  size="12" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            (如有商業登記號碼，必須填寫)
            <br />(例如商業登記號碼為 12345678-135-24-68-0 只需填寫 12345678-135) 
            <br />請注意：若貴公司是首次使用本處的招聘服務或曾遞交的商業登記證副本已過期，請於成功遞交空缺後，傳真商業登記證副本至職位空缺處理中心，並請註明參考編號（傳真號碼：2566 3331） 
            </td>
        </tr>
        <tr>
          <td align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 所屬行業：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="trade" id="trade"  style="width:210px; height:20px; font-size:12px;" onchange="check_trade(this.options[this.options.selectedIndex].value	);">
		  <option value="">請選擇行業</option>
		  {#section name=trade loop=$trade#}
            <option value="{#$trade[trade].id#}"  {#if $trade[trade].id == $company_profile.trade#}selected{#/if#}>{#$trade[trade].categoryname#}</option>
			{#/section#}
            </select> <input name="trade_option" value="{#$company_profile.trade_option#}" type="text" class="company_mb_input"  style="display:none;" id="trade_option" maxlength="10" /></td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold;">*</span> 現有僱員人數：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="stuff_number" type="text" class="company_mb_input" id="stuff_number" value="{#$company_profile.stuff_number#}" maxlength="3" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            人</td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">學校註冊證明書<br />註冊編號：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
          <input name="school_number" type="text" class="company_mb_input" id="school_number" value="{#$company_profile.school_number#}" maxlength="40" />
            （如屬學校或補習社，必須填寫）</td>
        </tr>
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <span style="color:#FF3300; font-weight:bold">*</span> 公司名稱：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <textarea name="company_name_cn" class="company_mb_textarea" id="company_name_cn" style="width:200px; height:50px;"onpropertychange="if(this.value.length>60){this.value=this.value.slice(0,60)}">{#$company_profile.company_name_cn#}</textarea>
            (中文): (只限輸入：30個中文字)
            <br/>
		  <textarea name="company_name_en" class="company_mb_textarea" id="company_name_en" style="width:200px; height:50px;"onpropertychange="if(this.value.length>60){this.value=this.value.slice(0,60)}">{#$company_profile.company_name_en#}</textarea>
            (英文): (只限輸入：60個英文字母) 
			</td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 聯絡人姓名：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
          (中文): 
          <input name="contact_cn" type="text" class="company_mb_input" id="contact_cn" value="{#$company_profile.contact_cn#}" maxlength="15" />
          <select name="contact_gender_cn">
             <option value="1" {# if 1== $company_profile.contact_gender_cn#}selected="selected"{#/if#}>小姐</option>
             <option value="2" {# if 2== $company_profile.contact_gender_cn#}selected="selected"{#/if#}>女士</option>
             <option value="3" {# if 3== $company_profile.contact_gender_cn#}selected="selected"{#/if#}>先生</option>
           </select>
           <br />
          (英文): 
          <select name="contact_gender_en">
             <option value="1" {# if 1== $company_profile.contact_gender_en#}selected="selected"{#/if#}>Miss</option>
             <option value="2" {# if 2== $company_profile.contact_gender_en#}selected="selected"{#/if#}>Ms.</option>
             <option value="3" {# if 3== $company_profile.contact_gender_en#}selected="selected"{#/if#}>Mr.</option>
           </select>
          <input name="contact_en" type="text" class="company_mb_input" id="contact_en" value="{#$company_profile.contact_en#}" maxlength="15" />
          </td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 電話號碼：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
          <select name="telephone_option">
             <option value="1" {# if 1== $company_profile.telephone_option#}selected="selected"{#/if#}>香港</option>
             <option value="2" {# if 2== $company_profile.telephone_option#}selected="selected"{#/if#}>其他</option>
           </select>
          <input name="telephone" type="text" class="company_mb_input" id="telephone" maxlength="35" value="{#$company_profile.telephone#}" />
          (內線) <input name="telephone_inline" type="text" class="company_mb_input" id="telephone_inline" maxlength="35" value="{#$company_profile.telephone_inline#}" />
          </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold"> </span>傳真號碼：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="fax" type="text" class="company_mb_input" id="fax" maxlength="50" />
            <label></label></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 聯系郵箱：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><label>
          <input name="email" type="text" class="company_mb_input" id="email" maxlength="80"  value="{#$company_profile.email#}"/>
          </label></td>
        </tr>
		<tr>
          <td height="30" align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 公司地址 ：<br />(商業登記證) </td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
          <div style="width:400px"><span style="width:213px;float:left;">(中文):</span> 
          <span style="float:left;">(英文):</span></div> 
          <br />
          <input name="address_1_cn" type="text" class="company_mb_input" id="address_1_cn" maxlength="50"  value="{#$company_profile.address_1_cn#}"/>
          <input name="address_1_en" type="text" class="company_mb_input" id="address_1_en" maxlength="50"  value="{#$company_profile.address_1_en#}"/>
          <br />
          <input name="address_2_cn" type="text" class="company_mb_input" id="address_2_cn" maxlength="50"  value="{#$company_profile.address_2_cn#}"/>
          <input name="address_2_en" type="text" class="company_mb_input" id="address_2_en" maxlength="50"  value="{#$company_profile.address_2_en#}"/>
          <br />
          <input name="address_3_cn" type="text" class="company_mb_input" id="address_3_cn" maxlength="50"  value="{#$company_profile.address_3_cn#}"/>
          <input name="address_3_en" type="text" class="company_mb_input" id="address_3_en" maxlength="50"  value="{#$company_profile.address_3_en#}"/>
          <br />
          </td>
        </tr>	
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
          <td height="160" valign="top" bgcolor="#FFFFFF"><br />
            <input type="submit" name="Submit" value="儲存"  class="member_submit" />            
          &nbsp;</td>
        </tr>
      </table>
        </form>
    </td>
  </tr>
</table>
{#include file="footer.htm"#}
</body>
</html>
